<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>任务分配</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="/ag/lzw/css/main.css" rel="stylesheet" type="text/css" />
		<link href="/ag/lzw/css/popup.css" rel="stylesheet" type="text/css" />
		<link href="/ag/lzw/css/task.css" rel="stylesheet" type="text/css" />
		<link href="/ag/css/changeBgColor.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js">
        </script>
		<!-- Jquery获取事件的插件 -->
		<script type="text/javascript" src="/ag/My97DatePicker/WdatePicker.js"
			defer="defer">
        </script>
		<script type="text/javascript" src="/ag/lzw/js/jquery.cookie.js">
        </script>
		<script type="text/javascript" src="/ag/lzw/js/json2.js">
        </script>
		<!-- Task.html自身的JS脚本文件 		<script type="text/javascript" src="/ag/zhh/js/addnewtask.js">
        </script>-->

		<script type="text/javascript" src="/ag/zhh/js/addtask3.js">
        </script>
		<script type="text/javascript" src="/ag/js/changeBgColor.js">
        </script>
		<style type="text/css">
body {
	font-size: 62.5%;
	margin-left: 0;
	margin-top: 0;
	margin-right: 0;
}
</style>
	</head>
	<body>
		<div style="height: 15px">
		</div>
		<div id="task" align="center" style="display: block">
			<form id="form" name="form1" method="post" action="">
				<table border="0" cellspacing="0" cellpadding="0" width="98%"
					align="center">
					<tbody>
						<tr>
							<td height="30">
								<table border="0" cellspacing="0" cellpadding="0" width="100%">
									<tbody>
										<tr>
											<td height="30" width="15">
												<img src="/ag/tab/images/tab_03.gif" width="15" height="30" />
											</td>
											<td background="/ag/tab/images/tab_05.gif"
												style="text-align: center;">
												&nbsp;
											</td>
											<td width="14">
												<img src="/ag/tab/images/tab_07.gif" width="14" height="30" />
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td>
								<table border="0" cellspacing="0" cellpadding="0" width="100%">
									<tbody>
										<tr>
											<td background="/ag/tab/images/tab_12.gif" width="9">
												&nbsp;
											</td>
											<td bgcolor="#dceffd">
												<table width="98%" height="98%" border="0" cellpadding="3"
													cellspacing="1" align="center"
													style="background-color: #1177bd" id="taskTable">
													<tr class="tabletr">
														<td height="38" colspan="3" valign="top">
															<div id="findSucc"
																style="margin-top: 20px; color: #000; margin-left: 50px; font-size: 16px; margin-bottom: 20px; font-size: 16px;">
																<img src="/ag/lzw/images/config.png" />
																<span style="color: #960; margin-left: 5px;">任务分配</span>
															</div>
														</td>
													</tr>
													<tr class="tabletr">
														<td height="38" colspan="3" valign="top">
															<table width="100%" border="0" align="center"
																cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table width="100%" border="0" cellspacing="0"
																			cellpadding="0">
																			<tr>
																				<td colspan="3">
																					<span
																						style="color: #960; font-size: 16px; margin-left: 15px; margin-top: 5px; margin-bottom: 5px; display: block;">任务列表：</span>
																				</td>
																			</tr>
																			<tr>
																				<td width="9">
																					&nbsp;
																				</td>
																				<td bgcolor="#f3ffe3">
																					<table width="99%" border="0" align="center"
																						cellpadding="0" cellspacing="1" bgcolor="#1177bd"
																						class="newtable" id="newTable">
																						<tr>
																							<td width="10%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																								<div align="center" class="STYLE2">
																									任务号
																								</div>
																							</td>
																							<td width="10%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																								<div align="center" class="STYLE2">
																									任务名称
																								</div>
																							</td>
																							<td width="40%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																								<div align="center" class="STYLE2">
																									任务内容
																								</div>
																							</td>
																							<td width="22%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																								<div align="center" class="STYLE2">
																									落实单位
																								</div>
																							</td>
																							<td width="12%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																								<div align="center" class="STYLE2">
																									分派时间
																								</div>
																							</td>
																							<td width="6%" height="18"
																								background="/ag/tab/images/tab_14.gif"
																								class="STYLE1">
																							</td>
																						</tr>
																					</table>
																				</td>
																				<td width="9">
																					&nbsp;
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<!-- 任务添加列表 -->
													<tr class="tabletr">
														<td height="38" colspan="3" valign="top">
															<div class="ulli">
																<form>
																</form>
																<form id="taskForm" method="get" action="">
																	<table>
																		<tbody>
																			<tr>
																				<td colspan="2">
																					<span class="span_n" style="color: #960;">任务名称：</span>
																					<input type="text" id="taskName" name="taskName"
																						style="width: 360px" />
																				</td>
																			</tr>
																			<tr>
																				<td colspan="2">
																					<span class="span_n" style="color: #960;">任务内容：</span>
																					<textarea rows="10" cols="36"
																						style="font-size: 16px; width: 360px"
																						id="taskContext"></textarea>
																				</td>
																			</tr>
																			<tr>
																				<td colspan="2">
																					<span class="span_n" style="color: #960;">指派部门：</span>
																					<input type="text" id="taskDept" name="taskDept"
																						style="width: 280px" />
																					<input type="button" value="选择部门"
																						style="height: 25px; width: 80px;" id="chosedept" />
																				</td>
																			</tr>
																			<tr>
																				<td colspan="2">
																					<span class="span_n" style="color: #960;">分派时间：</span>
																					<input type="text" id="taskTime" name="taskTime"
																						style="width: 360px" />
																				</td>
																			</tr>
																			<tr>
																				<td colspan="2">
																					<span class="span_n" style="color: #960;">任务附件：</span>
																					<input type="button" name="upFile" id="upFile"
																						value="添加 附件">
																					&nbsp;
																					<div id="upListDIV" style="display: none">
																					</div>
																					<!--
                                                                                    <input type="file" name="fileField" id="fileField" />
                                                                                    <input type="button" name="upFile" id="upFile" value="上传附件" />
                                                                                    -->
																				</td>
																			</tr>
																			<tr>
																				<td style="font-size: 16px;" colspan="2">
																					<span class="span_n" style="color: #960;">通知方式：</span>
																					<input name="checkbox" type="checkbox" id="sms"
																						checked=true />
																					短信
																					<!--<input type="checkbox" name="checkbox2" id="phone" />
																					电话
																				--></td>
																			</tr>
																			<tr>
																				<td class="read_agree" colspan="2" align="left">
																					<input type="button" value="添加任务"
																						style="width: 90px; height: 30px;" id="addTask" />
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</form>
															</div>
														</td>
													</tr>
													<!-- 添加任务完成按钮 -->
													<tr class="tabletr">
														<td height="70" colspan="3" valign="top">
															<div style="text-align: center; margin-top: 10px;">
																<input type="button" name="newaddtask"
																	id="newTaskFinish"
																	style="font-size: 20px; width: 90px; height: 40px;"
																	value="分派">
															</div>
														</td>
													</tr>
												</table>
											</td>
											<td background="/ag/tab/images/tab_16.gif" width="9">
												&nbsp;
											</td>
										</tr>
								</table>
							</td>
						</tr>
				</table>
				</td>
				<td background="/ag/tab/images/tab_16.gif" width="9">
				</td>
				</tr>
				</tbody>
				</table>
				</td>
				</tr>
				<tr>
					<td height="29">
						<table border="0" cellspacing="0" cellpadding="0" width="98%">
							<tbody>
								<tr>
									<td height="30" width="15">
										<img src="/ag/tab/images/tab_20.gif" width="15" height="29" />
									</td>
									<td background="/ag/tab/images/tab_21.gif">
										<table border="0" cellspacing="0" cellpadding="0" width="100%">
											<tbody>
												<tr>
													<td height="29" nowrap="nowrap"
														background="/ag/tab/images/tab_21.gif">
														&nbsp;
													</td>
												</tr>
											</tbody>
										</table>
									</td>
									<td width="14">
										<img src="/ag/tab/images/tab_22.gif" width="14" height="29" />
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				</tbody>
				</table>
				<p>
					&nbsp;
				</p>
			</form>
			<!-- 弹出窗口的div -->
			<div class="demo" style="display: none;">
				<div id="uploadFrame" title="添加任务附件">
					<iframe frameborder="0" name="uploadFrame" height="300"
						width="100%" scrolling="auto" src="/ag/lzw/upload.jsp"
						id="uploadFrame">
					</iframe>
				</div>
				<!-- 负责人选择窗口 -->
				<!--  				
				<div id="deptChooseWindow">
					<table width='98%' border='0' width="98%" height="98%"
						cellpadding="3" cellspacing="1" align="center"
						style="background-color: #1177bd">
						<tr>
							<td bgcolor="#ffffff">
								<div>
									<form id="DeptForm">
										<table width="540" align="center">
											<tbody>
												<tr>
													<td align="left">
														<span class="span_n" style="color: #960;">请选择:</span>
														<span id="s_xieban"><input name="协办部门" type="radio"
																class="radiobox" id="xieban" value="1" checked="checked">协办部门</span><span
															id="s_yingji"><input name="应急部门" type="radio"
																class="radiobox" id="yingji" value="2">应急部门</span><span
															id="s_waibu"><input name="外部单位" type="radio"
																class="radiobox" id="waibu" value="3">外部单位</span><span
															id="s_renyuan" style="display: none;"><input
																name="部门人员" type="radio" class="radiobox" id="renyuan"
																checked="checked">部门人员</span>
													</td>
												</tr>
												<tr>
													<td>
														<div style="margin-top: 10px">
															<table width="480" align="center">
																<tr>
																	<td width="200" height="200px" align="right">
																		<select style="width: 300; height: 180" id="subDepts"
																			name="all" size="6" multiple="multiple">
																		</select>
																	</td>
																	<td width="80" align="center">
																		<img id="addDept" src="wzp/images/arrow_right.gif"
																			style="cursor: pointer;" />
																		<br />
																		<br />
																		<img id="delDept" src="wzp/images/arrow_left.gif"
																			style="cursor: pointer;" />
																	</td>
																	<td width="200" height="200px" align="left">
																		<select style="width: 300; height: 180" id="selDepts"
																			name="sel" size="6" multiple="multiple">
																		</select>
																	</td>
																</tr>
															</table>
														</div>
													</td>
													<td>
													</td>
												</tr>
											</tbody>
										</table>
									</form>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
-->
				<div id="leaderChooseWindow">
					<table border='0' width='98%' height="98%" cellpadding="3"
						cellspacing="1" align="center" style="background-color: #1177bd">
						<tr>
							<td bgcolor="#ffffff">
								<div id="userForm">
									<table width="480px" align="center">
										<tbody id="selectArea">
											<tr>
												<td>
													<div style="margin-top: 10px">
														<table width="460px" align="center">
															<tr>
																<td width="190px" align="center">
																	<span class="span_n" style="color: #960;">可选部门</span>
																</td>
																<td width="80px" align="center">
																</td>
																<td width="190px" align="center">
																	<span class="span_n" style="color: #960;">已选部门</span>
																</td>
															</tr>

															<td id="subDeptstd" width="190px" height="180px"
																align="right" style="display: none">
																<select style="width: 190px; height: 180px"
																	id="subDepts" name="all" size="6" multiple="multiple">
																</select>
															</td>
															<td width="250px" height="350px" id="deptultd"
																align="center" width="190px" height="180px">
																<div align="left" id="deptuldiv"
																	style="height: 350px; width: 250px; overflow-y: auto; overflow-x: auto; border: 1px solid #8ACEEC !important">
																	<ul style="list-style: none" id="deptul">
																	</ul>
																</div>
															</td>
															<td width="80px" align="center">
																<img src="wzp/images/arrow_right.gif" style="cursor: pointer;"/>
																<br/><br/>
									                            <img id="delDept" src="wzp/images/arrow_left.gif" style="cursor: pointer;"/>
															</td>
															<td width="250px" height="350px" align="left">
																<select style="width: 190px; height: 350px"
																	id="selDepts" name="sel" size="6" multiple="multiple">
																</select>
															</td>
															</tr>
														</table>
													</div>
												</td>
												<td>
												</td>
											</tr>
										</tbody>
										<tr class="trtab">
											<td align="center">
												<input id='selOk' class="submit" type="Button" value="确定" />
												<span style="padding-left: 20px"><input
														id='selCancel' class="submit" type="button" value="取消" />
												</span>
											</td>
										</tr>
									</table>
								</div>
							</td>
						</tr>
					</table>
				</div>
	</body>
	<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css"
		rel="stylesheet" />
	<link type="text/css" href="/ag/css/dialog/demos.css" rel="stylesheet" />
	<script type="text/javascript" src="/ag/zhh/js/chooseTaskDept.js">
    <!-- JQuery的UI插件库 -->
    <script type="text/javascript" src="/ag/css/dialog/jquery.bgiframe-2.1.1.js">
    </script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js">
    </script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js">
    </script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js">
    </script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js">
    </script>
	<script type="text/javascript"
		src="/ag/js/dialog/jquery.ui.draggable.js">
    </script>
	<script type="text/javascript"
		src="/ag/js/dialog/jquery.ui.position.js">
    </script>
	<script type="text/javascript"
		src="/ag/js/dialog/jquery.ui.resizable.js">
    </script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js">
    </script>
	<script type="text/javascript"
		src="/ag/js/dialog/jquery.effects.core.js">
    </script>
	<script type="text/javascript"
		src="/ag/js/accrodin//jquery.ui.accordion.js">
    </script>
</html>
